﻿
using System;
using System.Collections.Generic;

namespace LibSars
{
	// Class to extract all SARS packets from an array of bytes.
	public class SarsPacketByteArrayExtractor {
		
		public static SarsPacket[] GetAllPackets(byte[] buffer){
			List<SarsPacket> packets = new List<SarsPacket>();
			packets.Add(SarsPacket.GenerateFrom(buffer,0));
			
			// TODO: implement cutting algorithm!
			
			return packets.ToArray();
			
		}
		
	}
}
